#! /usr/bin/env python
# encoding=utf-8

import cgi
import urllib
import feedparser
import jsonpickle

url = cgi.FieldStorage()['url'].value

feed = jsonpickle.encode(feedparser.parse(url))

print 'Content-Type: text/plain'
print
print feed